@DEFENSE_WALLS_RENDER_DISTANCE = 300.0

add_namespace = EH_event
add_namespace = EH_focus_event # Event Horizon focus tree

# Event 0 - Introduction to Event Horizon
news_event = {
	id = EH_event.0
	title = EH_event.0.t
	desc = EH_event.0.d
	picture = GFX_news_event_horizon_introduction
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.0.a }
}

#Num 300 events are event chain before full invasion
news_event = { #convergence event, CERN have created an atom sized bridge between dimensions.
	id = EH_event.300
	title = EH_event.300.t
	desc = EH_event.300.d
	picture = GFX_convergence_event
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.300.a }
}
news_event = { #UN convoy attacked in Africa
	id = EH_event.301
	title = EH_event.301.t
	desc = EH_event.301.d
	picture = GFX_UN_convoy_attack
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.301.a }
}
news_event = { #weird seismic activity in China
	id = EH_event.302
	title = EH_event.302.t
	desc = EH_event.302.d
	picture = GFX_tarim_earthquake
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.302.a }
}
news_event = { #China Pamir outpost radio silence
	id = EH_event.303
	title = EH_event.303.t
	desc = EH_event.303.d
	picture = GFX_pamir_attack
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.303.a }
}
news_event = { #Alaska park rangers goes missing
	id = EH_event.304
	title = EH_event.304.t
	desc = EH_event.304.d
	picture = GFX_alaska_attack
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.304.a }
}
news_event = { #Peruvian village strange happenings
	id = EH_event.305
	title = EH_event.305.t
	desc = EH_event.305.d
	picture = GFX_peru_outbreak
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.305.a }
}
news_event = { #PLA base attacked, armed response+RU reinforcement
	id = EH_event.306
	title = EH_event.306.t
	desc = EH_event.306.d
	picture = GFX_kashgar_attack
	is_triggered_only = yes
	major = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.306.a executed"
		name = EH_event.306.a
		hidden_effect = { EH_chimera_portal_1_created_effect = yes }
	}
}
news_event = { #Russian tactical nuke dropped in Aksai Chin
	id = EH_event.307
	title = EH_event.307.t
	desc = EH_event.307.d
	picture = GFX_kashgar_nuke_portal
	is_triggered_only = yes
	major = yes

	immediate = {
		hidden_effect = {
			launch_nuke = {
				province = 14126
				use_nuke = no
			}
		}
	}

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.307.a executed"
		name = EH_event.307.a
		591 = {
			transfer_state_to = ALN # Tibet
		}
		993 = {
			transfer_state_to = ALN # Tibet
		}
		421 = {
			transfer_state_to = ALN # Tibet
		}
		814 = {
			transfer_state_to = ALN # Alaska
		}
		457 = {
			transfer_state_to = ALN # Argentina
		}
		234 = {
			transfer_state_to = ALN # Ethiopia
		}
		ALN = {
			set_capital = { state = 234 }
		}
		hidden_effect = {
			EH_chimera_portal_234_created_effect = yes
			ALN = {
				country_event = EH_event.311
				army_experience = 100
			}
		}
		goto_state = 591
	}
}

news_event = { #portals open fully after nuke
	id = EH_event.308
	title = EH_event.308.t
	desc = EH_event.308.d
	picture = GFX_portal_opening
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.308.a }
}

news_event = { #UN Emergency session
	id = EH_event.309
	title = EH_event.309.t
	desc = EH_event.309.d
	picture = GFX_UN_emergency_meeting
	is_triggered_only = yes
	major = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.309.a executed"
		name = EH_event.309.a
		hidden_effect = {
			random_country = {
				limit = { NOT = { has_global_flag = EH_event_chain_10_flag } }
				news_event = { id = EH_event.310 days = 3 }
			}
			set_global_flag = EH_event_chain_10_flag
		}
	}
}
news_event = { #UN Joint Commander created, also first mention of states thinking about joining together
	id = EH_event.310
	title = EH_event.310.t
	desc = EH_event.310.d
	picture = GFX_UN_joint_command
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.310.a }
}

country_event = {
	id = EH_event.311
	title = EH_event.311.t
	desc = EH_event.311.d
	picture = GFX_event_EH_port
	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = EH_event.311.a
		log = "[GetDateText]: [Root.GetName]: Event EH_event.311"
		every_controlled_state = {
			three_state_arms_factory = yes
			three_state_arms_factory = yes
			three_state_arms_factory = yes
		}
		division_template = {
			name = "Portal Cluster"
			is_locked = yes
			force_allow_recruiting = yes
			division_names_group = ALN_ARM_01
			priority = 100
			regiments = {
				ALN_bellatoris = { x = 0 y = 0 }
				ALN_bellatoris = { x = 0 y = 1 }
				ALN_bellatoris = { x = 0 y = 2 }
				ALN_bellatoris = { x = 0 y = 3 }
				ALN_bellatoris = { x = 1 y = 0 }
				ALN_brachionis = { x = 1 y = 1 }
				ALN_brachionis = { x = 1 y = 2 }
			}
		}
		division_template = {
			name = "Portal Cluster 2"
			is_locked = yes
			force_allow_recruiting = yes
			division_names_group = ALN_ARM_01
			priority = 100
			regiments = {
				ALN_brachionis = { x = 0 y = 0 }
				ALN_brachionis = { x = 0 y = 1 }
				ALN_brachionis = { x = 0 y = 2 }
				ALN_bellatoris = { x = 0 y = 3 }
				ALN_bellatoris = { x = 1 y = 0 }
				ALN_gravis = { x = 1 y = 1 }
				ALN_gravis = { x = 1 y = 2 }
			}
		}
		division_template = {
			name = "Portal Cluster 3"
			is_locked = yes
			force_allow_recruiting = yes
			division_names_group = ALN_ARM_01
			priority = 100
			regiments = {
				ALN_gravis = { x = 0 y = 0 }
				ALN_gravis = { x = 0 y = 1 }
				ALN_gravis = { x = 0 y = 2 }
				ALN_gravis = { x = 0 y = 3 }
				ALN_brachionis = { x = 1 y = 0 }
				ALN_brachionis = { x = 1 y = 1 }
				ALN_bellatoris = { x = 1 y = 2 }
			}
		}
		set_research_slots = 0
		every_country = {
			set_country_flag = { flag = EH_invastion_spreads_out_flag days = 182 value = 1 }
		}
	}
}
#Num 400 events are post invasion events such as unifications, alliances, and megastates
# Country Events

country_event = { # Formation of USN
	id = EH_event.401
	title = EH_event.401.t
	desc = EH_event.401.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = EH_event.401.a
		log = "[GetDateText]: [This.GetName]: EH_event.401.a"
		# FORMING NORTH AMERICA
		if = {
			limit = {
				any_country = {
					is_in_north_america = yes
					is_ai = no
				}
			}
			random_country = {
				limit = {
					is_in_north_america = yes
					is_ai = no
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.402
			}
		}
		else_if = {
			limit = {
				any_country = {
					is_in_north_america = yes
					is_greater_than_minor_power = yes
				}
			}
			random_country = {
				limit = {
					is_in_north_america = yes
					NOT = { original_tag = ALN }
					is_greater_than_minor_power = yes
				}
				country_event = EH_event.402
			}
		}
		else = {
			random_country = {
				limit = {
					is_in_north_america = yes
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.402
			}
		}
		hidden_effect = {
			random_country = {
				limit = {
					is_central_american_country = yes
				}
				country_event = { id = EH_event.403 days = 3 random_days = 3 }
			}
		}
	}
}

country_event = { # Formation of USN
	id = EH_event.402
	title = EH_event.402.t
	desc = EH_event.402.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.402.a executed"
		name = EH_event.402.a
		# FORMING NORTH AMERICA
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_cosmetic_tag = EH_USN
		set_temp_variable = { special_formable_id = 106 }
		commit_special_formable = yes
		hidden_effect = { kill_country_leader = yes }
		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
		}
		create_country_leader = {
			name = "Council of National Preservation"
			picture = "GFX_EH_USN_HQ"
			ideology = neutral_Social
			traits = {
				neutrality_neutral_Social
				defender_of_democracy
				ruthless
				rational
				army_general
				hands_that_crafted_the_nation
				megaproject_maniac
			}
		}
		load_focus_tree = event_horizon_generic_focus
		every_other_country = {
			limit = {
				is_in_north_america = yes
				is_ai = yes
				NOT = { original_tag = ALN }
			}
			ROOT = {
				annex_country = {
					target = PREV
					transfer_troops = yes
				}
			}
			every_owned_state = {
				add_core_of = ROOT
			}
		}
		EH_chimera_declares_war = yes
		news_event = { id = EH_event.423 days = 1 }
		play_song = "Broken"
	}
}

# Formation of Republica De Centro America

country_event = { # Formation of RCA
	id = EH_event.403
	title = EH_event.403.t
	desc = EH_event.403.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = EH_event.403.a
		log = "[GetDateText]: [This.GetName]: EH_event.403.a"
		# FORMING REPUBLICA DE CENTRO AMERICA
		if = {
			limit = {
				any_country = {
					is_central_american_country = yes
					is_ai = no
				}
			}
			random_country = {
				limit = {
					is_central_american_country = yes
					is_ai = no
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.404
			}
		}
		else_if = {
			limit = {
				any_country = {
					is_central_american_country = yes
					is_greater_than_minor_power = yes
				}
			}
			random_country = {
				limit = {
					is_central_american_country = yes
					NOT = { original_tag = ALN }
					is_greater_than_minor_power = yes
				}
				country_event = EH_event.404
			}
		}
		else = {
			random_country = {
				limit = {
					is_central_american_country = yes
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.404
			}
		}
		hidden_effect = {
			random_country = {
				limit = {
					is_south_american_alliance_country = yes
				}
				country_event = { id = EH_event.405 days = 2 random_days = 2 }
			}
		}
	}
}

country_event = { # Formation of RCA
	id = EH_event.404
	title = EH_event.404.t
	desc = EH_event.404.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.404.a executed"
		name = EH_event.404.a
		# FORMING REPUBLICA DE CENTRO AMERICA
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_cosmetic_tag = EH_RCA
		set_temp_variable = { special_formable_id = 106 }
		commit_special_formable = yes
		hidden_effect = { kill_country_leader = yes }
		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
		}
		create_country_leader = {
			name = "Liderazgo de la República de Centroamérica"
			picture = "GFX_EH_RCA_HQ"
			ideology = neutral_Social
			traits = {
				neutrality_neutral_Social
				rational
				capable
				army_general
				hands_that_crafted_the_nation
				logistical_tunnel_vision
			}
		}
		load_focus_tree = event_horizon_generic_focus
		every_other_country = {
			limit = {
				is_central_american_country = yes
				is_ai = yes
				NOT = { original_tag = ALN }
			}
			ROOT = {
				annex_country = {
					target = PREV
					transfer_troops = yes
				}
			}
			every_owned_state = {
				add_core_of = ROOT
			}
		}
		EH_chimera_declares_war = yes
		news_event = { id = EH_event.424 days = 1 }
	}
}

# Formation Of South America
country_event = { # Formation of USM
	id = EH_event.405
	title = EH_event.405.t
	desc = EH_event.405.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = EH_event.405.a
		log = "[GetDateText]: [This.GetName]: EH_event.405.a"
		# FORMING SOUTH AMERICA
		if = {
			limit = {
				any_country = {
					is_south_american_alliance_country = yes
					is_ai = no
				}
			}
			random_country = {
				limit = {
					is_south_american_alliance_country = yes
					is_ai = no
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.406
			}
		}
		else_if = {
			limit = {
				any_country = {
					is_south_american_alliance_country = yes
					is_greater_than_minor_power = yes
				}
			}
			random_country = {
				limit = {
					is_south_american_alliance_country = yes
					NOT = { original_tag = ALN }
					is_greater_than_minor_power = yes
				}
				country_event = EH_event.406
			}
		}
		else = {
			random_country = {
				limit = {
					is_south_american_alliance_country = yes
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.406
			}
		}
		hidden_effect = {
			random_country = {
				limit = {
					is_european_federation_country = yes
				}
				country_event = { id = EH_event.407 days = 3 random_days = 3 }
			}
		}
	}
}

country_event = { # Formation of USM
	id = EH_event.406
	title = EH_event.406.t
	desc = EH_event.406.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.406.a executed"
		name = EH_event.406.a
		# FORMING SOUTH AMERICA
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_cosmetic_tag = EH_USM
		set_temp_variable = { special_formable_id = 106 }
		commit_special_formable = yes
		hidden_effect = { kill_country_leader = yes }
		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
		}
		create_country_leader = {
			name = "UNASUR Headquarters"
			picture = "GFX_EH_USM_HQ"
			ideology = neutral_Social
			traits = {
				neutrality_neutral_Social
				rational
				capable
				army_general
				hands_that_crafted_the_nation
				cornered_fox
			}
		}
		load_focus_tree = event_horizon_generic_focus
		every_other_country = {
			limit = {
				is_south_american_alliance_country = yes
				is_ai = yes
				NOT = { original_tag = ALN }
			}
			ROOT = {
				annex_country = {
					target = PREV
					transfer_troops = yes
				}
			}
			every_owned_state = {
				add_core_of = ROOT
			}
		}
		EH_chimera_declares_war = yes
		news_event = { id = EH_event.425 days = 1 }
	}
}

# Formation of European Federation

country_event = { # Formation of EUF
	id = EH_event.407
	title = EH_event.407.t
	desc = EH_event.407.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = EH_event.407.a
		log = "[GetDateText]: [This.GetName]: EH_event.407.a"
		# FORMING EUROPEAN FEDERATION
		if = {
			limit = {
				any_country = {
					is_european_federation_country = yes
					is_ai = no
				}
			}
			random_country = {
				limit = {
					is_european_federation_country = yes
					is_ai = no
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.408
			}
		}
		else_if = {
			limit = {
				any_country = {
					is_european_federation_country = yes
					is_greater_than_minor_power = yes
				}
			}
			random_country = {
				limit = {
					is_european_federation_country = yes
					NOT = { original_tag = ALN }
					is_greater_than_minor_power = yes
				}
				country_event = EH_event.408
			}
		}
		else = {
			random_country = {
				limit = {
					is_european_federation_country = yes
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.408
			}
		}
		hidden_effect = {
			random_country = {
				limit = {
					is_african_defense_front_country = yes
				}
				country_event = { id = EH_event.409 days = 2 random_days = 2 }
			}
		}
	}
}

country_event = { # Formation of EUF
	id = EH_event.408
	title = EH_event.408.t
	desc = EH_event.408.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.408.a executed"
		name = EH_event.408.a
		# FORMING EUROPEAN FEDERATION
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_cosmetic_tag = EH_EUF
		set_temp_variable = { special_formable_id = 106 }
		commit_special_formable = yes
		hidden_effect = { kill_country_leader = yes }
		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
		}
		create_country_leader = {
			name = "European Federation Headquarters"
			picture = "GFX_EH_EUF_HQ"
			ideology = neutral_Social
			traits = {
				neutrality_neutral_Social
				defender_of_democracy
				rational
				capable
				army_general
				hands_that_crafted_the_nation
				megaproject_maniac
				ecological_economist
			}
		}
		load_focus_tree = event_horizon_generic_focus
		every_other_country = {
			limit = {
				is_european_federation_country = yes
				is_ai = yes
				NOT = { original_tag = ALN }
			}
			ROOT = {
				annex_country = {
					target = PREV
					transfer_troops = yes
				}
			}
			every_owned_state = {
				add_core_of = ROOT
			}
		}
		EH_chimera_declares_war = yes
		news_event = { id = EH_event.426 days = 1 }
	}
}

# Formation Of African Defense Front

country_event = { # Formation of ADF
	id = EH_event.409
	title = EH_event.409.t
	desc = EH_event.409.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = EH_event.409.a
		log = "[GetDateText]: [This.GetName]: EH_event.409.a"
		# FORMING AFRICAN DEFENSE FRONT
		if = {
			limit = {
				any_country = {
					is_african_defense_front_country = yes
					is_ai = no
				}
			}
			random_country = {
				limit = {
					is_african_defense_front_country = yes
					is_ai = no
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.410
			}
		}
		else_if = {
			limit = {
				any_country = {
					is_african_defense_front_country = yes
					is_greater_than_minor_power = yes
				}
			}
			random_country = {
				limit = {
					is_african_defense_front_country = yes
					NOT = { original_tag = ALN }
					is_greater_than_minor_power = yes
				}
				country_event = EH_event.410
			}
		}
		else = {
			random_country = {
				limit = {
					is_african_defense_front_country = yes
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.410
			}
		}
		hidden_effect = {
			random_country = {
				limit = {
					is_crescent_union_country = yes
				}
				country_event = { id = EH_event.411 days = 2 random_days = 2 }
			}
		}
	}
}

country_event = { # Formation of AFD
	id = EH_event.410
	title = EH_event.410.t
	desc = EH_event.410.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.410.a executed"
		name = EH_event.410.a
		# FORMING AFRICAN DEFENSE FRONT
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_cosmetic_tag = EH_AFD
		set_temp_variable = { special_formable_id = 106 }
		commit_special_formable = yes
		hidden_effect = { kill_country_leader = yes }
		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
		}
		create_country_leader = {
			name = "The Government of African Defense Point"
			picture = "GFX_EH_AFD_HQ"
			ideology = neutral_Social
			traits = {
				neutrality_neutral_Social
				cautious
				rational
				army_general
				hands_that_crafted_the_nation
				general_secretary
			}
		}
		load_focus_tree = event_horizon_generic_focus
		every_other_country = {
			limit = {
				is_african_defense_front_country = yes
				is_ai = yes
				NOT = { original_tag = ALN }
			}
			ROOT = {
				annex_country = {
					target = PREV
					transfer_troops = yes
				}
			}
			every_owned_state = {
				add_core_of = ROOT
			}
		}
		EH_chimera_declares_war = yes
		news_event = { id = EH_event.427 days = 1 }
	}
}

# Eastern Continental Union

country_event = { # Formation of CRU
	id = EH_event.411
	title = EH_event.411.t
	desc = EH_event.411.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = EH_event.411.a
		log = "[GetDateText]: [This.GetName]: EH_event.411.a"
		# FORMING EASTERN CONTINENTAL UNION
		if = {
			limit = {
				any_country = {
					is_crescent_union_country = yes
					is_ai = no
				}
			}
			random_country = {
				limit = {
					is_crescent_union_country = yes
					is_ai = no
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.412
			}
		}
		else_if = {
			limit = {
				any_country = {
					is_crescent_union_country = yes
					is_greater_than_minor_power = yes
				}
			}
			random_country = {
				limit = {
					is_crescent_union_country = yes
					NOT = { original_tag = ALN }
					is_greater_than_minor_power = yes
				}
				country_event = EH_event.412
			}
		}
		else = {
			random_country = {
				limit = {
					is_crescent_union_country = yes
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.412
			}
		}
		hidden_effect = {
			random_country = {
				limit = {
					is_eurasian_federation_country = yes
				}
				country_event = { id = EH_event.413 days = 2 random_days = 2 }
			}
		}
	}
}

country_event = { # Formation of CRU
	id = EH_event.412
	title = EH_event.412.t
	desc = EH_event.412.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.412.a executed"
		name = EH_event.412.a
		# FORMING CRESCENT UNION
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_cosmetic_tag = EH_CRU
		set_temp_variable = { special_formable_id = 106 }
		commit_special_formable = yes
		hidden_effect = { kill_country_leader = yes }
		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
		}
		create_country_leader = {
			name = "The Leadership of the Eastern Continental Union"
			picture = "GFX_EH_CRU_HQ"
			ideology = neutral_Social
			traits = {
				neutrality_neutral_Social
				zealous
				capable
				army_general
				hands_that_crafted_the_nation
				leader_of_arab_world
				supreme_leader_of_iran
			}
		}
		load_focus_tree = event_horizon_generic_focus
		every_other_country = {
			limit = {
				is_crescent_union_country = yes
				is_ai = yes
				NOT = { original_tag = ALN }
			}
			ROOT = {
				annex_country = {
					target = PREV
					transfer_troops = yes
				}
			}
			every_owned_state = {
				add_core_of = ROOT
			}
		}
		EH_chimera_declares_war = yes
		news_event = { id = EH_event.428 days = 1 }
	}
}

country_event = { # Formation of ERF
	id = EH_event.413
	title = EH_event.413.t
	desc = EH_event.413.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = EH_event.413.a
		log = "[GetDateText]: [This.GetName]: EH_event.413.a"
		# FORMING EUROASIAN FEDERATION
		if = {
			limit = {
				any_country = {
					is_eurasian_federation_country = yes
					is_ai = no
				}
			}
			random_country = {
				limit = {
					is_eurasian_federation_country = yes
					is_ai = no
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.414
			}
		}
		else_if = {
			limit = {
				any_country = {
					is_eurasian_federation_country = yes
					is_greater_than_minor_power = yes
				}
			}
			random_country = {
				limit = {
					is_eurasian_federation_country = yes
					NOT = { original_tag = ALN }
					is_greater_than_minor_power = yes
				}
				country_event = EH_event.414
			}
		}
		else = {
			random_country = {
				limit = {
					is_eurasian_federation_country = yes
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.414
			}
		}
		hidden_effect = {
			random_country = {
				limit = {
					is_china_alliance_country = yes
				}
				country_event = { id = EH_event.415 days = 2 random_days = 2 }
			}
		}
	}
}

country_event = { # Formation of ERF
	id = EH_event.414
	title = EH_event.414.t
	desc = EH_event.414.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.414.a executed"
		name = EH_event.414.a
		# FORMING EUROASIAN FEDERATION
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_cosmetic_tag = EH_ERF
		set_temp_variable = { special_formable_id = 106 }
		commit_special_formable = yes
		hidden_effect = { kill_country_leader = yes }
		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
		}
		create_country_leader = {
			name = "Eurasian Federation Headquarters"
			picture = "GFX_EH_ERF_HQ"
			ideology = neutral_Social
			traits = {
				neutrality_neutral_Social
				ruthless
				capable
				army_general
				hands_that_crafted_the_nation
				peoples_leader
				prince_of_terror
				captain_of_industry
			}
		}
		load_focus_tree = event_horizon_generic_focus
		every_other_country = {
			limit = {
				is_eurasian_federation_country = yes
				is_ai = yes
				NOT = { original_tag = ALN }
			}
			ROOT = {
				annex_country = {
					target = PREV
					transfer_troops = yes
				}
			}
			every_owned_state = {
				add_core_of = ROOT
			}
		}
		EH_chimera_declares_war = yes
		news_event = { id = EH_event.429 days = 1 }
	}
}

country_event = { # Formation of CHN
	id = EH_event.415
	title = EH_event.415.t
	desc = EH_event.415.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = EH_event.415.a
		log = "[GetDateText]: [This.GetName]: EH_event.415.a"
		# FORMING CHINA
		if = {
			limit = {
				any_country = {
					is_china_alliance_country = yes
					is_ai = no
				}
			}
			random_country = {
				limit = {
					is_china_alliance_country = yes
					is_ai = no
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.416
			}
		}
		else_if = {
			limit = {
				any_country = {
					is_china_alliance_country = yes
					is_greater_than_minor_power = yes
				}
			}
			random_country = {
				limit = {
					is_china_alliance_country = yes
					NOT = { original_tag = ALN }
					is_greater_than_minor_power = yes
				}
				country_event = EH_event.416
			}
		}
		else = {
			random_country = {
				limit = {
					is_china_alliance_country = yes
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.416
			}
		}
		hidden_effect = {
			random_country = {
				limit = {
					is_asian_southeast_coalition_country = yes
				}
				country_event = { id = EH_event.417 days = 2 random_days = 2 }
			}
		}
	}
}

country_event = { # Formation of CHN
	id = EH_event.416
	title = EH_event.416.t
	desc = EH_event.416.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.416.a executed"
		name = EH_event.416.a
		# FORMING CHINA
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_cosmetic_tag = EH_CHN
		set_temp_variable = { special_formable_id = 106 }
		commit_special_formable = yes
		hidden_effect = { kill_country_leader = yes }
		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
		}
		create_country_leader = {
			name = "Great Hall Council"
			picture = "GFX_EH_CHN_HQ"
			expire = "2050.1.1"
			ideology = neutral_Social
			traits = {
				neutrality_neutral_Social
				rational
				capable
				army_general
				hands_that_crafted_the_nation
				peoples_leader
				quartermaster_general
				captain_of_industry
			}
		}
		load_focus_tree = event_horizon_generic_focus
		every_other_country = {
			limit = {
				is_china_alliance_country = yes
				is_ai = yes
				NOT = { original_tag = ALN }
			}
			ROOT = {
				annex_country = {
					target = PREV
					transfer_troops = yes
				}
			}
			every_owned_state = {
				add_core_of = ROOT
			}
		}
		EH_chimera_declares_war = yes
		news_event = { id = EH_event.430 days = 1 }
	}
}

country_event = { # Formation of ASE
	id = EH_event.417
	title = EH_event.417.t
	desc = EH_event.417.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = EH_event.417.a
		log = "[GetDateText]: [This.GetName]: EH_event.417.a"
		# FORMING ASEAN
		if = {
			limit = {
				any_country = {
					is_asian_southeast_coalition_country = yes
					is_ai = no
				}
			}
			random_country = {
				limit = {
					is_asian_southeast_coalition_country = yes
					is_ai = no
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.418
			}
		}
		else_if = {
			limit = {
				any_country = {
					is_asian_southeast_coalition_country = yes
					is_greater_than_minor_power = yes
				}
			}
			random_country = {
				limit = {
					is_asian_southeast_coalition_country = yes
					NOT = { original_tag = ALN }
					is_greater_than_minor_power = yes
				}
				country_event = EH_event.418
			}
		}
		else = {
			random_country = {
				limit = {
					is_asian_southeast_coalition_country = yes
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.418
			}
		}
		hidden_effect = {
			random_country = {
				limit = {
					is_east_asian_coalition_country = yes
				}
				country_event = { id = EH_event.419 days = 2 random_days = 2 }
			}
		}
	}
}

country_event = { # Formation of ASE
	id = EH_event.418
	title = EH_event.418.t
	desc = EH_event.418.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.418.a executed"
		name = EH_event.418.a
		# FORMING ASEAN
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_cosmetic_tag = EH_ASE
		set_temp_variable = { special_formable_id = 106 }
		commit_special_formable = yes
		hidden_effect = { kill_country_leader = yes }
		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
		}
		create_country_leader = {
			name = "ASEAN Headquarters"
			picture = "GFX_EH_ASE_HQ"
			ideology = neutral_Social
			traits = {
				neutrality_neutral_Social
				rational
				army_general
				hands_that_crafted_the_nation
				internationally_decorated_commander
				staunch_personalist
			}
		}
		load_focus_tree = event_horizon_generic_focus
		every_other_country = {
			limit = {
				is_asian_southeast_coalition_country = yes
				is_ai = yes
				NOT = { original_tag = ALN }
			}
			ROOT = {
				annex_country = {
					target = PREV
					transfer_troops = yes
				}
			}
			every_owned_state = {
				add_core_of = ROOT
			}
		}
		EH_chimera_declares_war = yes
		news_event = { id = EH_event.431 days = 1 }
	}
}

country_event = { # Formation of EAC
	id = EH_event.419
	title = EH_event.419.t
	desc = EH_event.419.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = EH_event.419.a
		log = "[GetDateText]: [This.GetName]: EH_event.419.a"
		# FORMING EAST ASIAN COALITION
		if = {
			limit = {
				any_country = {
					is_east_asian_coalition_country = yes
					is_ai = no
				}
			}
			random_country = {
				limit = {
					is_east_asian_coalition_country = yes
					is_ai = no
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.420
			}
		}
		else_if = {
			limit = {
				any_country = {
					is_east_asian_coalition_country = yes
					is_greater_than_minor_power = yes
				}
			}
			random_country = {
				limit = {
					is_east_asian_coalition_country = yes
					NOT = { original_tag = ALN }
					is_greater_than_minor_power = yes
				}
				country_event = EH_event.420
			}
		}
		else = {
			random_country = {
				limit = {
					is_east_asian_coalition_country = yes
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.420
			}
		}
		hidden_effect = {
			random_country = {
				limit = {
					is_oceanic_defense_union_country = yes
				}
				country_event = { id = EH_event.421 days = 2 random_days = 2 }
			}
		}
	}
}

country_event = { # Formation of EAC
	id = EH_event.420
	title = EH_event.420.t
	desc = EH_event.420.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.420.a executed"
		name = EH_event.420.a
		# FORMING EAST ASIAN COALITION
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_cosmetic_tag = EH_EAC
		set_temp_variable = { special_formable_id = 106 }
		commit_special_formable = yes
		hidden_effect = { kill_country_leader = yes }
		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
		}
		create_country_leader = {
			name = "East Asian Coalition Headquarters"
			picture = "GFX_EH_EAC_HQ"
			ideology = neutral_Social
			traits = {
				neutrality_neutral_Social
				likeable
				rational
				army_general
				hands_that_crafted_the_nation
				megaproject_maniac
				technocrat
				emperor_of_japan
				tech_savy
			}
		}
		load_focus_tree = event_horizon_generic_focus
		every_other_country = {
			limit = {
				is_east_asian_coalition_country = yes
				is_ai = yes
				NOT = { original_tag = ALN }
			}
			ROOT = {
				annex_country = {
					target = PREV
					transfer_troops = yes
				}
			}
			every_owned_state = {
				add_core_of = ROOT
			}
		}
		EH_chimera_declares_war = yes
		news_event = { id = EH_event.432 days = 1 }
	}
}

country_event = { # Formation of ODU
	id = EH_event.421
	title = EH_event.421.t
	desc = EH_event.421.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		name = EH_event.421.a
		log = "[GetDateText]: [This.GetName]: EH_event.421.a"
		# FORMING OCEANIC DEFENSE UNION
		if = {
			limit = {
				any_country = {
					is_oceanic_defense_union_country = yes
					is_ai = no
				}
			}
			random_country = {
				limit = {
					is_oceanic_defense_union_country = yes
					is_ai = no
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.422
			}
		}
		else_if = {
			limit = {
				any_country = {
					is_oceanic_defense_union_country = yes
					is_greater_than_minor_power = yes
				}
			}
			random_country = {
				limit = {
					is_oceanic_defense_union_country = yes
					NOT = { original_tag = ALN }
					is_greater_than_minor_power = yes
				}
				country_event = EH_event.422
			}
		}
		else = {
			random_country = {
				limit = {
					is_oceanic_defense_union_country = yes
					NOT = { original_tag = ALN }
				}
				country_event = EH_event.422
			}
		}
		hidden_effect = {
			random_country = {
				limit = {
					is_oceanic_defense_union_country = no
				}
				news_event = { id = EH_event.500 days = 45 random_days = 15 }
			}
		}
	}
}

country_event = { # Formation of ODU
	id = EH_event.422
	title = EH_event.422.t
	desc = EH_event.422.d
	picture = GFX_political_deal
	is_triggered_only = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.422.a executed"
		name = EH_event.422.a
		# FORMING OCEANIC DEFENSE UNION
		drop_cosmetic_tag = yes
		clear_variable = dynamic_flag_variant
		set_cosmetic_tag = EH_ODU
		set_temp_variable = { special_formable_id = 106 }
		commit_special_formable = yes
		hidden_effect = { kill_country_leader = yes }
		set_politics = {
			ruling_party = neutrality
			elections_allowed = no
		}
		create_country_leader = {
			name = "The Capital of the Oceanic Defense Union"
			picture = "GFX_EH_ODU_HQ"
			ideology = neutral_Social
			traits = {
				neutrality_neutral_Social
				likeable
				cautious
				rational
				army_general
				hands_that_crafted_the_nation
				island_warlord
			}
		}
		load_focus_tree = event_horizon_generic_focus
		every_country = {
			limit = {
				is_oceanic_defense_union_country = yes
				is_ai = yes
				NOT = { original_tag = ALN }
			}
			ROOT = {
				annex_country = {
					target = PREV
					transfer_troops = yes
				}
			}
		}
		every_country = {
			every_owned_state = {
				add_core_of = PREV
			}
			hidden_effect = {
				set_rule = {
					can_join_opposite_factions = yes
					can_create_factions = yes
					can_be_spymaster = yes
				}
			}
		}
		EH_chimera_declares_war = yes
		news_event = { id = EH_event.433 days = 1 }
	}
}

news_event = { # North America Formed
	id = EH_event.423
	title = EH_event.423.t
	desc = EH_event.423.d
	picture = GFX_united_states_capitol
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.423.a }
}

news_event = { # Republica De Centro America Formed
	id = EH_event.424
	title = EH_event.424.t
	desc = EH_event.424.d
	picture = GFX_alba_creation
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.424.a }
}

news_event = { # South America Formed
	id = EH_event.425
	title = EH_event.425.t
	desc = EH_event.425.d
	picture = GFX_venezuelan_civil_war
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.425.a }
}

news_event = { # European Federation Formed
	id = EH_event.426
	title = EH_event.426.t
	desc = EH_event.426.d
	picture = GFX_news_Italian_EU_Flags
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.426.a }
}

news_event = { # African Defense Front Formed
	id = EH_event.427
	title = EH_event.427.t
	desc = EH_event.427.d
	picture = GFX_african_union_news
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.427.a }
}

news_event = { # Crescent Union Formed
	id = EH_event.428
	title = EH_event.428.t
	desc = EH_event.428.d
	picture = GFX_news_arab_spring
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.428.a }
}

news_event = { # Eurasian Federation Formed
	id = EH_event.429
	title = EH_event.429.t
	desc = EH_event.429.d
	picture = GFX_news_csto
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.429.a }
}

news_event = { # China Formed
	id = EH_event.430
	title = EH_event.430.t
	desc = EH_event.430.d
	picture = GFX_china_19th_national_congress
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.430.a }
}

news_event = { # ASEAN Formed
	id = EH_event.431
	title = EH_event.431.t
	desc = EH_event.431.d
	picture = GFX_india_flag
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.431.a }
}

news_event = { # East Asian Coalition Formed
	id = EH_event.432
	title = EH_event.432.t
	desc = EH_event.432.d
	picture = GFX_japan_flag
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.432.a }
}

news_event = { # Oceanic Defense Union Formed
	id = EH_event.433
	title = EH_event.433.t
	desc = EH_event.433.d
	picture = GFX_news_Italian_Europe
	is_triggered_only = yes
	major = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.433.a executed"
		name = EH_event.433.a
		hidden_effect = {
			ALN = {
				news_event = { id = EH_event.434 days = 5 random_days = 3 }
			}
		}
	}
}

news_event = {
	id = EH_event.434
	title = EH_event.434.t
	desc = EH_event.434.d
	picture = GFX_space_debris
	is_triggered_only = yes
	major = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.434.a executed"
		name = EH_event.434.a
		if = {
			limit = { NOT = { tag = ALN } }
			add_ideas = EH_disrupted_satellite_network_idea
		}
	}
}

#Num 500 events are post invasion tech event leading to first proto HACS
news_event = { #Dr. Lisa Randall discovers Randallite
	id = EH_event.500
	title = EH_event.500.t
	desc = EH_event.500.d
	picture = GFX_randallite_discovery
	is_triggered_only = yes
	major = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.500.a executed"
		name = EH_event.500.a
		hidden_effect = { every_country = { set_country_flag = EH_discovered_randallite_flag } }
	}
}
news_event = { #Proto HACS event
	id = EH_event.501
	title = EH_event.501.t
	desc = EH_event.501.d
	picture = GFX_proto_HACS_event
	is_triggered_only = yes
	major = yes

	immediate = { set_global_flag = EH_mechs_announced_flag }

	option = {
		name = EH_event.501.a
		custom_effect_tooltip = {
			localization_key = SP_UNLOCK_PROJECT
			PROJECT = sp_amws_combat_system
		}
		custom_effect_tooltip = {
			localization_key = SP_UNLOCK_PROJECT
			PROJECT = sp_zamws_advanced_mws
		}
		custom_effect_tooltip = {
			localization_key = SP_UNLOCK_PROJECT
			PROJECT = sp_xciws_close_in_weapon_system
		}
		custom_effect_tooltip = {
			localization_key = SP_UNLOCK_PROJECT
			PROJECT = sp_close_range_battle_halberd
		}
		custom_effect_tooltip = {
			localization_key = SP_UNLOCK_PROJECT
			PROJECT = sp_great_sword
		}
	}
}
news_event = { #Bosphorus counter attack HACS
	id = EH_event.511
	title = EH_event.511.t
	desc = EH_event.511.d
	picture = GFX_counter_attack_bosphorus
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.511.a }
}
#Num 800 events are defense lines and their fall
news_event = {
	id = EH_event.800
	title = EH_event.800.t
	desc = EH_event.800.d
	picture = GFX_defense_line_nile
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.800.a }
}

news_event = {
	id = EH_event.801
	title = EH_event.801.t
	desc = EH_event.801.d
	picture = GFX_defense_line_nile_fallen
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.801.a }
}

news_event = {
	id = EH_event.802
	title = EH_event.802.t
	desc = EH_event.802.d
	picture = GFX_defense_line_nile_fallen
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.802.a }
}

news_event = {
	id = EH_event.803 #Bosphorus line
	title = EH_event.803.t
	desc = EH_event.803.d
	picture = GFX_defense_line_bosphorus
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.803.a }
}

news_event = {
	id = EH_event.804 #Bosphorus line fall
	title = EH_event.804.t
	desc = EH_event.804.d
	picture = GFX_defense_line_bosphorus_fallen
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.804.a }
}
news_event = {
	id = EH_event.805
	title = EH_event.805.t
	desc = EH_event.805.d
	picture = GFX_defense_line_bosphorus_fallen
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.805.a }
}
news_event = {
	id = EH_event.806 #Caucasus line
	title = EH_event.806.t
	desc = EH_event.806.d
	picture = GFX_defense_line_caucasus
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.806.a }
}
news_event = {
	id = EH_event.807 #Caucasus line fall
	title = EH_event.807.t
	desc = EH_event.807.d
	picture = GFX_defense_line_caucasus_fallen
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.807.a }
}
news_event = {
	id = EH_event.808 #Caucasus line fall 2
	title = EH_event.808.t
	desc = EH_event.808.d
	picture = GFX_defense_line_caucasus_fallen_2
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.808.a }
}
news_event = {
	id = EH_event.809
	title = EH_event.809.t
	desc = EH_event.809.d
	picture = GFX_defense_line_caucasus_fallen_2
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.809.a }
}

news_event = {
	id = EH_event.810 #Europe line
	title = EH_event.810.t
	desc = EH_event.810.d
	picture = GFX_defense_line_europe
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.810.a }
}
news_event = {
	id = EH_event.811 #Europe line fall
	title = EH_event.811.t
	desc = EH_event.811.d
	picture = GFX_defense_line_europe_fallen
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.811.a }
}

#Num 900 events are the fall of famous cities
news_event = {
	id = EH_event.900
	title = EH_event.900.t
	desc = EH_event.900.d
	picture = GFX_city_lost_washington_global
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.900.a }
}

news_event = {
	id = EH_event.901
	title = EH_event.901.t
	desc = EH_event.901.d
	picture = GFX_city_lost_NY_global
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.901.a }
}

news_event = {
	id = EH_event.902
	title = EH_event.902.t
	desc = EH_event.902.d
	picture = GFX_city_lost_losangeles_global
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.902.a }
}

news_event = {
	id = EH_event.903
	title = EH_event.903.t
	desc = EH_event.903.d
	picture = GFX_city_lost_sanfrancisco_global
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.903.a }
}

news_event = {
	id = EH_event.904
	title = EH_event.904.t
	desc = EH_event.904.d
	picture = GFX_city_lost_moscow_global
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.904.a }
}

news_event = {
	id = EH_event.905
	title = EH_event.905.t
	desc = EH_event.905.d
	picture = GFX_city_lost_shanghai_global
	is_triggered_only = yes
	major = yes

	option = { name = EH_event.905.a }
}

# Portal closure event
news_event = {
	id = EH_event.1000
	title = EH_event.1000.t
	desc = EH_event.1000.d
	picture = GFX_news_nuclear_test
	is_triggered_only = yes
	major = yes

	option = {
		log = "[GetDateText]: [This.GetName]: EH_event.1000.a executed"
		name = EH_event.1000.a
		add_war_support = 0.2
		add_stability = 0.1
	}
}


# FOCUS TREE EVENTS
country_event = {
	id = EH_focus_event.1
	title = EH_focus_event.1.t
	desc = EH_focus_event.1.d
	picture = GFX_afghan_army_training
	is_triggered_only = yes

	option = {
		name = EH_focus_event.1.a
		log = "[GetDateText]: [This.GetName]: EH_focus_event.1.a"
		add_ideas = EH_massive_mobilization_idea
		custom_effect_tooltip = EH_spirits_lasts_until_war_is_active_TT
		ai_chance = { base = 50 }
	}

	option = {
		name = EH_focus_event.1.b
		log = "[GetDateText]: [This.GetName]: EH_focus_event.1.b"
		add_ideas = EH_professional_military_idea
		custom_effect_tooltip = EH_spirits_lasts_until_war_is_active_TT
		ai_chance = { base = 50 }
	}
}

country_event = {
	id = EH_focus_event.2
	title = EH_focus_event.2.t
	desc = EH_focus_event.2.d
	picture = GFX_afghan_army_training
	is_triggered_only = yes

	option = {
		name = EH_focus_event.2.a
		log = "[GetDateText]: [This.GetName]: EH_focus_event.2.a"
		army_experience = 20
		add_war_support = 0.05
	}
}

country_event = {
	id = EH_focus_event.3
	title = EH_focus_event.3.t
	desc = EH_focus_event.3.d
	picture = GFX_AFG_Drone_Event
	is_triggered_only = yes

	option = {
		name = EH_focus_event.3.a
		log = "[GetDateText]: [This.GetName]: EH_focus_event.3.a"
		add_war_support = 0.1
	}
}

country_event = {
	id = EH_focus_event.4
	title = EH_focus_event.4.t
	desc = EH_focus_event.4.d
	picture = GFX_rocket_explosion
	is_triggered_only = yes

	option = {
		name = EH_focus_event.4.a
		log = "[GetDateText]: [This.GetName]: EH_focus_event.4.a"
		add_war_support = -0.03
	}
}

country_event = {
	id = EH_focus_event.5
	title = EH_focus_event.5.t
	desc = EH_focus_event.5.d
	picture = GFX_terrorist_attack
	is_triggered_only = yes

	option = {
		name = EH_focus_event.5.a
		log = "[GetDateText]: [This.GetName]: EH_focus_event.5.a"
		add_manpower = -50
		ALN = { add_manpower = -120 }
		add_breakthrough_progress = {
			 specialization = specialization_land
			  value = -0.15
		}
	}
}

country_event = {
	id = EH_focus_event.6
	title = EH_focus_event.6.t
	desc = EH_focus_event.6.d
	picture = GFX_raid_retaliation
	is_triggered_only = yes

	option = {
		name = EH_focus_event.6.a
		log = "[GetDateText]: [This.GetName]: EH_focus_event.6.a"
		add_manpower = -15
		ALN = { add_manpower = -240 }
	}
}

country_event = {
	id = EH_focus_event.7
	title = EH_focus_event.7.t
	desc = EH_focus_event.7.d
	picture = GFX_bundeswehr2
	is_triggered_only = yes

	option = { name = EH_focus_event.7.a }
}

country_event = {
	id = EH_focus_event.8
	title = EH_focus_event.8.t
	desc = EH_focus_event.8.d
	picture = GFX_nasa_orion_space_capsule
	is_triggered_only = yes

	option = {
		name = EH_focus_event.8.a
		log = "[GetDateText]: [This.GetName]: EH_focus_event.8.a"
		add_breakthrough_points = {
			specialization = specialization_land
			value = 1
		}
		ALN = {
			add_to_variable = { EH_chimera_forces_weakened_army_attack_factor_var = -0.04 tooltip = army_attack_factor_tt }
			if = {
				limit = { NOT = { has_dynamic_modifier = { modifier = EH_chimera_forces_weakened_modifier } } }
				add_dynamic_modifier = { modifier = EH_chimera_forces_weakened_modifier }
			}
		}
	}
}

country_event = {
	id = EH_focus_event.9
	title = EH_focus_event.9.t
	desc = EH_focus_event.9.d
	picture = GFX_mining
	is_triggered_only = yes

	option = {
		name = EH_focus_event.9.a
		log = "[GetDateText]: [This.GetName]: EH_focus_event.9.a"
		set_temp_variable = { EH_temp_research_sites_prep_time_var = 15 }
		EH_modify_research_sites_prep_time_effect = yes
		set_country_flag = EH_event_1_fired_flag
		set_country_flag = { flag = EH_event_fired_flag days = 45 value = 1 }
	}
}

country_event = {
	id = EH_focus_event.10
	title = EH_focus_event.10.t
	desc = EH_focus_event.10.d
	picture = GFX_event_pmcs
	is_triggered_only = yes

	option = {
		name = EH_focus_event.10.a
		log = "[GetDateText]: [This.GetName]: EH_focus_event.10.a"
		add_command_power = 75
		set_temp_variable = { EH_temp_protection_increase = 10 }
		EH_research_sites_protection_increase = yes
		set_temp_variable = { EH_temp_research_sites_scientist_protection_increase = 10 }
		EH_research_sites_scientist_protection_increase = yes
		set_country_flag = EH_event_2_fired_flag
		set_country_flag = { flag = EH_event_fired_flag days = 45 value = 1 }
	}
}

country_event = {
	id = EH_focus_event.11
	title = EH_focus_event.11.t
	desc = EH_focus_event.11.d
	picture = GFX_euro
	is_triggered_only = yes

	option = {
		name = EH_focus_event.11.a
		log = "[GetDateText]: [This.GetName]: EH_focus_event.11.a"
		set_temp_variable = { treasury_change = 50 }
		modify_treasury_effect = yes
		add_tech_bonus = {
			name = EH_focus_event.11.t
			bonus = 0.25
			uses = 5
			category = CAT_civilian
		} hidden_effect = { rq_eb_14ca1fb92b = yes }
		set_country_flag = EH_event_3_fired_flag
		set_country_flag = { flag = EH_event_fired_flag days = 45 value = 1 }
	}
}

country_event = {
	id = EH_focus_event.12
	title = EH_focus_event.12.t
	desc = EH_focus_event.12.d
	picture = GFX_steel_mill
	is_triggered_only = yes

	option = {
		name = EH_focus_event.12.a
		log = "[GetDateText]: [This.GetName]: EH_focus_event.12.a"
		set_variable = { EH_set_up_mine_time_var = 40 }
		subtract_from_variable = { EH_set_up_mine_time_var = EH_search_for_randallite_veins_time_new_var }
		set_country_flag = EH_setting_up_randallite_mine_flag
		set_temp_variable = { treasury_change = -30 }
		modify_treasury_effect = yes
		set_variable_to_random = {
			var = EH_add_randallite_random
			min = 3
			max = 5
			integer = yes
		}
		activate_mission = EH_set_up_mine_mission
	}

	option = {
		name = EH_focus_event.12.b
		log = "[GetDateText]: [This.GetName]: EH_focus_event.12.b"
		add_political_power = -50
	}
}

country_event = {
	id = EH_focus_event.13
	title = EH_focus_event.13.t
	desc = EH_focus_event.13.d
	picture = GFX_steel_mill
	is_triggered_only = yes

	option = {
		name = EH_focus_event.13.a
		log = "[GetDateText]: [This.GetName]: EH_focus_event.13.a"
		set_variable = { EH_set_up_mine_time_var = 25 }
		subtract_from_variable = { EH_set_up_mine_time_var = EH_search_for_randallite_veins_time_new_var }
		set_country_flag = EH_setting_up_iron_mine_flag
		set_temp_variable = { treasury_change = -12 }
		modify_treasury_effect = yes
		activate_mission = EH_set_up_mine_mission
	}

	option = {
		name = EH_focus_event.13.b
		log = "[GetDateText]: [This.GetName]: EH_focus_event.13.b"
		add_political_power = -50
	}
}

country_event = {
	id = EH_focus_event.14
	title = EH_focus_event.14.t
	desc = EH_focus_event.14.d
	picture = GFX_steel_mill
	is_triggered_only = yes

	option = {
		name = EH_focus_event.14.a
		log = "[GetDateText]: [This.GetName]: EH_focus_event.14.a"
		set_variable = { EH_set_up_mine_time_var = 25 }
		subtract_from_variable = { EH_set_up_mine_time_var = EH_search_for_randallite_veins_time_new_var }
		set_country_flag = EH_setting_up_aluminium_mine_flag
		set_temp_variable = { treasury_change = -12 }
		modify_treasury_effect = yes
		activate_mission = EH_set_up_mine_mission
	}

	option = {
		name = EH_focus_event.14.b
		log = "[GetDateText]: [This.GetName]: EH_focus_event.14.b"
		add_political_power = -50
	}
}

country_event = {
	id = EH_focus_event.15
	title = EH_focus_event.15.t
	desc = EH_focus_event.15.d
	picture = GFX_generic_factory
	is_triggered_only = yes

	option = { name = EH_focus_event.15.a }
}

country_event = {
	id = EH_focus_event.16
	title = EH_focus_event.16.t
	desc = EH_focus_event.16.d
	picture = GFX_raid_retaliation
	is_triggered_only = yes

	option = {
		name = EH_focus_event.16.a
		log = "[GetDateText]: [This.GetName]: EH_focus_event.16.a"
		add_ideas = EH_the_last_charge_idea
		add_war_support = 0.15
		add_stability = 0.1
		add_command_power = 50
	}
}
